import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
// import errorLog from './modules/errorLog'
import permission from './modules/permission'
import loginform from './modules/loginform'
// import tagsView from './modules/tagsView'
// import user from './modules/user'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  strict: process.env.NODE_ENV!='production',   //严格模式：防止直接修改state

  state: {a: 12, b: 5},                         //核心：数据

  modules: {
    app,
  //   errorLog,
    permission,
    loginform,
  //   tagsView,
  //   user
  },
  getters
})

export default store
